import request from '@/utils/request'

// 获取授权链接
export function getAuthUrl() {
  return request({
    url: '/shopee/auth/createAccessTokenUrl/',
    method: 'get'
  })
}

// 查询授权店铺列表
export function listShop(query) {
  return request({
    url: '/shopee/shop/list',
    method: 'get',
    params: query
  })
}

// 修改授权店铺1
export function updateShop(data) {
  return request({
    url: '/shopee/shop',
    method: 'put',
    data: data
  })
}

export function listAllLoaclShop(data) {
  return request({
    url: '/shopee/shop/merchant',
    method: 'get',
    params: data
  })
}

// 查询详细
export function getShop(id) {
  return request({
    url: '/shopee/shop/' + id,
    method: 'get'
  })
}

